﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyMvcStoreApplication.Models;

namespace MyMvcStoreApplication.Repositories
{
    public class GeneroRepository : IDisposable
    {
        private MusicStoreEntities db = new MusicStoreEntities();

        public List<Genero> ReadGeneros()
        {
            return db.Generos.
               OrderBy(a => a.Nombre).
               ToList();
        }

        public void Dispose()
        {
            db.Dispose();
        }
    }
}